import service from '@/utils/request'

// @Tags SampleData
// @Summary 创建SampleData
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SampleData true "创建SampleData"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /sampleData/createSampleData [post]
export const createSampleData = (data) => {
  return service({
    url: '/sampleData/createSampleData',
    method: 'post',
    data
  })
}

// @Tags SampleData
// @Summary 删除SampleData
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SampleData true "删除SampleData"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sampleData/deleteSampleData [delete]
export const deleteSampleData = (data) => {
  return service({
    url: '/sampleData/deleteSampleData',
    method: 'delete',
    data
  })
}

// @Tags SampleData
// @Summary 删除SampleData
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除SampleData"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sampleData/deleteSampleData [delete]
export const deleteSampleDataByIds = (data) => {
  return service({
    url: '/sampleData/deleteSampleDataByIds',
    method: 'delete',
    data
  })
}

// @Tags SampleData
// @Summary 更新SampleData
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SampleData true "更新SampleData"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /sampleData/updateSampleData [put]
export const updateSampleData = (data) => {
  return service({
    url: '/sampleData/updateSampleData',
    method: 'put',
    data
  })
}

// @Tags SampleData
// @Summary 用id查询SampleData
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.SampleData true "用id查询SampleData"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /sampleData/findSampleData [get]
export const findSampleData = (params) => {
  return service({
    url: '/sampleData/findSampleData',
    method: 'get',
    params
  })
}

// @Tags SampleData
// @Summary 分页获取SampleData列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取SampleData列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /sampleData/getSampleDataList [get]
export const getSampleDataList = (params) => {
  return service({
    url: '/sampleData/getSampleDataList',
    method: 'get',
    params
  })
}
export const getPeopleNameCount = (params) => {
  return service({
    url: '/sampleData/getPeopleNameCount',
    method: 'get',
    params
  })
}
export const findByIds = (data) => {
  return service({
    url: '/sampleData/findByIds',
    method: 'delete',
    data
  })
}

export const getFileLineCount = (data) => {
  return service({
    url: '/sampleData/getFileLineCount',
    method: 'post',
    data
  })
}
